{% extends 'base_user.html' %}
{% load staticfiles %}

{% block title %}
    登录
{% endblock %}

{% block form_box %}
    <div class="login-box">
        <form action="/user/login/" method="post">
            <img src="{% static 'user/img/avatar.svg' %}" alt="" class="avatar">
            <h2>登录</h2>
            <div class="input-group">
                <div class="icon">
                    <i class="fa fa-user"></i>
                </div>
                <div>
                    <h5>用户名</h5>
                    <input type="text" class="input" name="username">
                </div>
            </div>
            <div class="input-group">
                <div class="icon">
                    <i class="fa fa-lock"></i>
                </div>
                <div>
                    <h5>密码</h5>
                    <input type="password" class="input" name="password">
                </div>
            </div>
            <div style="display: flex;justify-content: space-between">
                <label style="width:60px;display: flex;justify-content: space-between">
                    <a href="javascript:">记住我</a>
                    <input type="checkbox" name="remember_me" value="1">
                </label>
                <a href="/user/register/">还没账号?去注册</a>
            </div>
            <input type="submit" class="btn" value="登录">
        </form>
    </div>

{% endblock %}